import datetime
from applications.extensions import db

class Booktags(db.Model):
    __tablename__ = 'zbook_booktags'
    id = db.Column(db.Integer, primary_key=True)
    uid = db.Column(db.Integer, comment='用户编号')
    bid = db.Column(db.Integer, comment='书籍编号')
    tid = db.Column(db.Integer, comment='标签编号')
    count = db.Column(db.Integer, default=0, comment='排序')
    create_time = db.Column(db.DateTime, default=datetime.datetime.now)
